<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>销售记录编辑 </title>
</head>
<body>
<ul class="breadcrumb">
		<c:if test="${t.id==null }">
			<li>销售记录添加</li>		
		</c:if>
		<c:if test="${t.id!=null }">
			<c:if test="${status==view}">
				<li>销售记录修改</li>				
			</c:if>
			<c:if test="${status!=view}">
				<li>销售记录查看</li>
			</c:if>
		</c:if>
	</ul>
	<form id="form" class="form-inline well">
		<input name="id" type="hidden" value="${t.id }">
		<label class="text">
			名称:
			<input class="input-medium" type="text" name="p_name" value="${t.p_name }">
		</label>
		<label class="text">
			型号:
			<input class="input-medium" type="text" name="p_type" value="${t.p_type }">
		</label>
		<label class="text">
			销售人员:
			<input class="input-medium" type="text" name="saler" value="${t.saler }">
		</label>
		<label class="text">
			店铺:
			<input class="input-medium" type="text" name="shop" value="${t.shop }">
		</label>
		<label class="text">
			价格:
			<input class="input-medium" type="text" name="price" value="${t.price }">
		</label>
		<label class="text">
			数量:
			<input class="input-medium" type="text" name="amount" value="${t.amount }">
		</label>
		<label class="text">
			时间:
			<input class="input-medium" type="text" name="date" value='<fmt:formatDate value="${t.date }" pattern="yyyy-MM-dd"/>' class="Wdate" onfocus="WdatePicker()">
		</label>
		<label class="textarea">
			备注:
			<textarea rows="3" cols="10" name="remark">${t.remark }</textarea>
		</label>
		<div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary" onclick="form_submit('sales/salesTicket?save')">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('sales/salesTicket?list')">返回</a>
                </div>
         </div>
	</form>
</body>
</html>